home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 2001 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
-
- // PrintDr.h : Declaration of the CPrintDr
-
- #ifndef __PRINTDR_H_
- #define __PRINTDR_H_
-
- #include "resource.h" // main symbols
-
- /////////////////////////////////////////////////////////////////////////////
- // CPrintDr
- class ATL_NO_VTABLE CPrintDr :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CPrintDr, &CLSID_PrintDr>,
- public IDispatchImpl<IPrintDr, &IID_IPrintDr, &LIBID_PRINTCADLib>
- {
- public:
- CPrintDr()
- {
- }
-
- DECLARE_REGISTRY_RESOURCEID(IDR_PRINTDR)
-
- DECLARE_PROTECT_FINAL_CONSTRUCT()
-
- BEGIN_COM_MAP(CPrintDr)
- COM_INTERFACE_ENTRY(IPrintDr)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
-
- // IPrintDr
- public:
- short m_sDrawMode;
- STDMETHOD(PrintAll)(LPDISPATCH WhichDrawing, long hPrintDC);
- private:
- COLORREF m_clrBackGround;
- void SetDrawModeEx(short nNewValue);
- protected:
- View* m_pView;
- };
-
- #endif //__PRINTDR_H_
-